HDFS-15842. HDFS mover to emit metrics.#2738
Conversation
There was a problem hiding this comment.
It is to pass the checkstyle as I added a new file to this package without package-info..
There was a problem hiding this comment.
Does Balancer have a similar metrics? If not shall we use this PR or create a new one to do that?
There was a problem hiding this comment.
We have it in the internal branch with similar implementation but it is not in upstream yet.
Actually, there has been a JIRA long time ago for balancer metrics. https://issues.apache.org/jira/browse/HDFS-10648
I can rebase our changes there as a different PR after this.
26469e2 to
4dc6df6
Compare
|
💔 -1 overall
This message was automatically generated. |
Jing9
left a comment
There was a problem hiding this comment.
Thanks for updating the patch! The patch LGTM. Only one minor comment.
|
|
||
| public static MoverMetrics create(Mover mover) { | ||
| MoverMetrics m = new MoverMetrics(mover); | ||
| DefaultMetricsSystem.instance().unregisterSource(m.getName()); |
There was a problem hiding this comment.
Any reason we want to call unregister here? Can we call unregister at the end of the mover running?
There was a problem hiding this comment.
You are right, this is not needed here. As discussed I will shutdown metrics at the end of the mover run
|
💔 -1 overall
This message was automatically generated. |
|
+1 |
No description provided.